import http from '@/utils/http/axios'
import { RequestEnum } from '@/enums/httpEnum'

// 获取新闻资讯列表
export function getHeaderList(params) {
  return http.request(
    {
      url: `/ds/header/list`,
      method: RequestEnum.POST,
      params
    }
  )
}

// 获取课程选择
export function getChooseType(params) {
  return http.request(
    {
      url: `/ds/choose`,
      method: RequestEnum.POST,
      params
    }
  )
}

// 获取课程列表
export function getCourseList(params) {
  return http.request(
    {
      url: `/ds/homepage/courselist`,
      method: RequestEnum.POST,
      params
    }
  )
}
